<!DOCTYPE html>
<html>
    <head>
        <#include "../common.ftl">
    </head>
    <body class="childrenBody">
        <form class="layui-form" style="width:80%;">
            <#-- 设置部门管理ID的隐藏域 -->
            <input type="hidden" name="id" value="${(department.id)!}">

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">部门名称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" name="departmentName" id="customerName"  value="${(department.departmentName)!}" placeholder="请输入部门名称">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">部门经理</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="linkMan"  lay-verify="required"  value="${(department.linkMan)!}" placeholder="请输入部门经理">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">部门电话</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="phone" name="linkPhone" value="${(department.linkPhone)!}" id="phone" placeholder="请输入部门电话">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">概要</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input"
                            name="description" value="${(department.description)!}" id="description" placeholder="请输入概要">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">创建人</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="createMan" value="${(department.createMan)!}" placeholder="请输入创建人">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">部门人数</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入部门人数" name="departmentNumber" class="layui-textarea">${(department.departmentNumber)!}</textarea>
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">部门状态</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入部门状态 1：已分配  0：未分配" name="state" class="layui-textarea">${(department.state)!}</textarea>
                </div>
            </div>


            <br/>
            <div class="layui-form-item layui-row layui-col-xs12">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-lg" lay-submit=""  lay-filter="addOrUpdateSaleChance">确认 </button>
                    <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
                </div>
            </div>
        </form>
    <script type="text/javascript" src="${ctx}/js/department/add.update.js"></script>
    </body>
</html>